

<!DOCTYPE html>
<html class="writer-html5" lang="en" >
<head>
  <meta charset="utf-8" />
  
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <title>JAEGER- DISTRIBUTED TRACING &mdash; Ceph Documentation</title>
  

  
  <link rel="stylesheet" href="../_static/ceph.css" type="text/css" />
  <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  <link rel="stylesheet" href="../_static/graphviz.css" type="text/css" />
  <link rel="stylesheet" href="../_static/css/custom.css" type="text/css" />

  
  
    <link rel="shortcut icon" href="../_static/favicon.ico"/>
  

  
  

  

  
  <!--[if lt IE 9]>
    <script src="../_static/js/html5shiv.min.js"></script>
  <![endif]-->
  
    
      <script type="text/javascript" id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script>
        <script src="../_static/jquery.js"></script>
        <script src="../_static/underscore.js"></script>
        <script src="../_static/doctools.js"></script>
    
    <script type="text/javascript" src="../_static/js/theme.js"></script>

    
    <link rel="index" title="Index" href="../genindex/" />
    <link rel="search" title="Search" href="../search/" />
    <link rel="next" title="Ceph 中文文档翻译资源" href="../translation_cn/" />
    <link rel="prev" title="Ceph 术语" href="../glossary/" /> 
</head>

<body class="wy-body-for-nav">

   
  <header class="top-bar">
    

















<div role="navigation" aria-label="breadcrumbs navigation">

  <ul class="wy-breadcrumbs">
    
      <li><a href="../" class="icon icon-home"></a> &raquo;</li>
        
      <li>JAEGER- DISTRIBUTED TRACING</li>
    
    
      <li class="wy-breadcrumbs-aside">
        
          
            <a href="../_sources/jaegertracing/index.rst.txt" rel="nofollow"> View page source</a>
          
        
      </li>
    
  </ul>

  
  <hr/>
</div>
  </header>
  <div class="wy-grid-for-nav">
    
    <nav data-toggle="wy-nav-shift" class="wy-nav-side">
      <div class="wy-side-scroll">
        <div class="wy-side-nav-search"  style="background: #eee" >
          

          
            <a href="../">
          

          
            
            <img src="../_static/logo.png" class="logo" alt="Logo"/>
          
          </a>

          

          
<div role="search">
  <form id="rtd-search-form" class="wy-form" action="../search/" method="get">
    <input type="text" name="q" placeholder="Search docs" />
    <input type="hidden" name="check_keywords" value="yes" />
    <input type="hidden" name="area" value="default" />
  </form>
</div>

          
        </div>

        
        <div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
          
            
            
              
            
            
              <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="../start/intro/">Ceph 简介</a></li>
<li class="toctree-l1"><a class="reference internal" href="../install/">安装 Ceph</a></li>
<li class="toctree-l1"><a class="reference internal" href="../cephadm/">Cephadm</a></li>
<li class="toctree-l1"><a class="reference internal" href="../rados/">Ceph 存储集群</a></li>
<li class="toctree-l1"><a class="reference internal" href="../cephfs/">Ceph 文件系统</a></li>
<li class="toctree-l1"><a class="reference internal" href="../rbd/">Ceph 块设备</a></li>
<li class="toctree-l1"><a class="reference internal" href="../radosgw/">Ceph 对象网关</a></li>
<li class="toctree-l1"><a class="reference internal" href="../mgr/">Ceph 管理器守护进程</a></li>
<li class="toctree-l1"><a class="reference internal" href="../mgr/dashboard/">Ceph 仪表盘</a></li>
<li class="toctree-l1"><a class="reference internal" href="../api/">API 文档</a></li>
<li class="toctree-l1"><a class="reference internal" href="../architecture/">体系结构</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev/developer_guide/">开发者指南</a></li>
<li class="toctree-l1"><a class="reference internal" href="../dev/internals/">Ceph 内幕</a></li>
<li class="toctree-l1"><a class="reference internal" href="../governance/">项目管理</a></li>
<li class="toctree-l1"><a class="reference internal" href="../foundation/">Ceph 基金会</a></li>
<li class="toctree-l1"><a class="reference internal" href="../ceph-volume/">ceph-volume</a></li>
<li class="toctree-l1"><a class="reference internal" href="../releases/general/">Ceph 版本（总目录）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../releases/">Ceph 版本（索引）</a></li>
<li class="toctree-l1"><a class="reference internal" href="../security/">Security</a></li>
<li class="toctree-l1"><a class="reference internal" href="../glossary/">Ceph 术语</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Tracing</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#basic-architecture-and-terminology">BASIC ARCHITECTURE AND TERMINOLOGY</a></li>
<li class="toctree-l2"><a class="reference internal" href="#jaeger-deployment">JAEGER DEPLOYMENT</a></li>
<li class="toctree-l2"><a class="reference internal" href="#how-to-enable-tracing-in-ceph">HOW TO ENABLE TRACING IN CEPH</a></li>
<li class="toctree-l2"><a class="reference internal" href="#traces-in-rgw">TRACES IN RGW</a><ul>
<li class="toctree-l3"><a class="reference internal" href="#requests">REQUESTS</a></li>
<li class="toctree-l3"><a class="reference internal" href="#multipart-upload">MULTIPART UPLOAD</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="../translation_cn/">中文版翻译资源</a></li>
</ul>

            
          
        </div>
        
      </div>
    </nav>

    <section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">

      
      <nav class="wy-nav-top" aria-label="top navigation">
        
          <i data-toggle="wy-nav-top" class="fa fa-bars"></i>
          <a href="../">Ceph</a>
        
      </nav>


      <div class="wy-nav-content">
        
        <div class="rst-content">
        
          <div role="main" class="document" itemscope="itemscope" itemtype="http://schema.org/Article">
           <div itemprop="articleBody">
            
<div id="dev-warning" class="admonition note">
  <p class="first admonition-title">Notice</p>
  <p class="last">This document is for a development version of Ceph.</p>
</div>
  <div id="docubetter" align="right" style="padding: 5px; font-weight: bold;">
    <a href="https://pad.ceph.com/p/Report_Documentation_Bugs">Report a Documentation Bug</a>
  </div>

  
  <div class="section" id="jaeger-distributed-tracing">
<h1>JAEGER- DISTRIBUTED TRACING<a class="headerlink" href="#jaeger-distributed-tracing" title="Permalink to this headline">¶</a></h1>
<p>Jaeger  provides ready to use tracing services for distributed
systems and is becoming the widely used standard because of their simplicity and
standardization.</p>
<div class="section" id="basic-architecture-and-terminology">
<h2>BASIC ARCHITECTURE AND TERMINOLOGY<a class="headerlink" href="#basic-architecture-and-terminology" title="Permalink to this headline">¶</a></h2>
<ul class="simple">
<li><p>TRACE: A trace shows the data/execution path through a system.</p></li>
<li><p>SPAN: A single unit of a trace, it is a data structure that stores
information like operation name, timestamps, ordering in a trace.</p></li>
<li><p>JAEGER CLIENT: language-specific implementations of the OpenTracing API.</p></li>
<li><p>JAEGER AGENT: a daemon that listens for spans sent over User Datagram Protocol.
The agent is meant to be placed on the same host as the instrumented
application. (acts like a sidecar listener)</p></li>
<li><p>JAEGER COLLECTOR: Jaeger agent sends the spans to this daemon which then
stitches the spans together to form a trace(if enabled, also persists a database
for these traces)</p></li>
<li><p>JAEGER QUERY AND CONSOLE FRONTEND: UI based frontend to checkout the jaeger
traces, navigate to <a class="reference external" href="http:/">http:/</a>/&lt;jaeger frontend host&gt;:16686</p></li>
</ul>
<p>read more about jaeger tracing:.</p>
<blockquote>
<div><p><a class="reference external" href="https://www.jaegertracing.io/docs/">https://www.jaegertracing.io/docs/</a></p>
</div></blockquote>
</div>
<div class="section" id="jaeger-deployment">
<h2>JAEGER DEPLOYMENT<a class="headerlink" href="#jaeger-deployment" title="Permalink to this headline">¶</a></h2>
<p>there are couple of ways to deploy jaeger.
please refer to:</p>
<p><a class="reference external" href="https://www.jaegertracing.io/docs/1.25/deployment/">jaeger deployment</a></p>
<p><a class="reference external" href="https://www.jaegertracing.io/docs/1.25/performance-tuning/">jaeger performance tuning</a></p>
<p>In addition, spans are being sent to local jaeger agent, so the jaeger agent must be running on each host (not in all-in-one mode).
otherwise, spans of hosts without active jaeger agent will be lost.</p>
</div>
<div class="section" id="how-to-enable-tracing-in-ceph">
<h2>HOW TO ENABLE TRACING IN CEPH<a class="headerlink" href="#how-to-enable-tracing-in-ceph" title="Permalink to this headline">¶</a></h2>
<p>tracing in Ceph is disabled by default.
it could be enabled globally, or for each entity separately (e.g. rgw).</p>
<blockquote>
<div><p>Enable tracing globally:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ ceph config set global jaeger_tracing_enable true
</pre></div>
</div>
<p>Enable tracing for each entity:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$ ceph config set &lt;entity&gt; jaeger_tracing_enable true
</pre></div>
</div>
</div></blockquote>
</div>
<div class="section" id="traces-in-rgw">
<h2>TRACES IN RGW<a class="headerlink" href="#traces-in-rgw" title="Permalink to this headline">¶</a></h2>
<p>traces of RGW can be found under Service <cite>rgw</cite> in Jaeger Frontend.</p>
<div class="section" id="requests">
<h3>REQUESTS<a class="headerlink" href="#requests" title="Permalink to this headline">¶</a></h3>
<p>every user request is being traced. each trace contains tags for
<cite>Operation name</cite>, <cite>User id</cite>, <cite>Object name</cite> and <cite>Bucket name</cite>.</p>
<p>there is also <cite>Upload id</cite> tag for Multipart upload operations.</p>
<p>request trace is named <cite>&lt;command&gt; &lt;transaction id&gt;</cite>.</p>
</div>
<div class="section" id="multipart-upload">
<h3>MULTIPART UPLOAD<a class="headerlink" href="#multipart-upload" title="Permalink to this headline">¶</a></h3>
<p>there is a trace, that consists a span for each request that made by that multipart upload, including all <cite>Put Object</cite> requests.</p>
<p>multipart trace is named <cite>multipart_upload &lt;upload id&gt;</cite>.</p>
<p>rgw service in Jaeger Frontend:</p>
<a class="reference internal image-reference" href="../_images/rgw_jaeger.png"><img alt="../_images/rgw_jaeger.png" src="../_images/rgw_jaeger.png" style="width: 400px;" /></a>
<p>osd service in Jaeger Frontend:</p>
<a class="reference internal image-reference" href="../_images/osd_jaeger.png"><img alt="../_images/osd_jaeger.png" src="../_images/osd_jaeger.png" style="width: 400px;" /></a>
</div>
</div>
</div>



           </div>
           
          </div>
          <footer>
    <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
        <a href="../translation_cn/" class="btn btn-neutral float-right" title="Ceph 中文文档翻译资源" accesskey="n" rel="next">Next <span class="fa fa-arrow-circle-right" aria-hidden="true"></span></a>
        <a href="../glossary/" class="btn btn-neutral float-left" title="Ceph 术语" accesskey="p" rel="prev"><span class="fa fa-arrow-circle-left" aria-hidden="true"></span> Previous</a>
    </div>

  <hr/>

  <div role="contentinfo">
    <p>
        &#169; Copyright 2016, Ceph authors and contributors. Licensed under Creative Commons Attribution Share Alike 3.0 (CC-BY-SA-3.0).

    </p>
  </div> 

</footer>
        </div>
      </div>

    </section>

  </div>
  

  <script type="text/javascript">
      jQuery(function () {
          SphinxRtdTheme.Navigation.enable(true);
      });
  </script>

  
  
    
   

</body>
</html>